<template>
    <div :id="id" :class="className"  :style="{height:height,width:width}">
    </div>
  
</template>

<script>
import echarts from 'echarts'
import resize from '../mixins/resize'

export default {
    mixins: [resize],
    props: {
        className: {
            type: String,
            default: 'chart'
        },
        id: {
            type: String,
            default: 'geoCoordMap'
        },
        width: {
            type: String,
            default: '200px'
        },
        height: {
            type: String,
            default: '200px'
        }
    },

    data() {
        return {
            chart: null,
        }
    },
    mounted() {
        this.initChart()
    },
    methods:{
        initChart(){

          

            const myChart =  echarts.init(document.getElementById(this.id));

            const option = {
               

            };

            // 3. 把配置给实例对象
            myChart.setOption(option);

           
           
        },

       
    }



}

</script>

